package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 苹果内购
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_apple_iap")
public class AppleIap implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 充值编号
     */
    private String number;

    private String applicationVersion;

    private Long versionExternalIdentifier;

    private String originalApplicationVersion;

    private String quantity;

    /**
     * 套餐ID
     */
    private String productId;

    private String transactionId;

    private String originalTransactionId;

    private Long requestDateMs;

    private Long receiptCreationDateMs;

    private Long purchaseDateMs;

    private Long originalPurchaseDateMs;

    /**
     * 错误码
     */
    private String status;

    /**
     * 完整回执
     */
    private String receipt;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public String getApplicationVersion() {
        return applicationVersion;
    }

    public void setApplicationVersion(String applicationVersion) {
        this.applicationVersion = applicationVersion;
    }
    public Long getVersionExternalIdentifier() {
        return versionExternalIdentifier;
    }

    public void setVersionExternalIdentifier(Long versionExternalIdentifier) {
        this.versionExternalIdentifier = versionExternalIdentifier;
    }
    public String getOriginalApplicationVersion() {
        return originalApplicationVersion;
    }

    public void setOriginalApplicationVersion(String originalApplicationVersion) {
        this.originalApplicationVersion = originalApplicationVersion;
    }
    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }
    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }
    public String getOriginalTransactionId() {
        return originalTransactionId;
    }

    public void setOriginalTransactionId(String originalTransactionId) {
        this.originalTransactionId = originalTransactionId;
    }
    public Long getRequestDateMs() {
        return requestDateMs;
    }

    public void setRequestDateMs(Long requestDateMs) {
        this.requestDateMs = requestDateMs;
    }
    public Long getReceiptCreationDateMs() {
        return receiptCreationDateMs;
    }

    public void setReceiptCreationDateMs(Long receiptCreationDateMs) {
        this.receiptCreationDateMs = receiptCreationDateMs;
    }
    public Long getPurchaseDateMs() {
        return purchaseDateMs;
    }

    public void setPurchaseDateMs(Long purchaseDateMs) {
        this.purchaseDateMs = purchaseDateMs;
    }
    public Long getOriginalPurchaseDateMs() {
        return originalPurchaseDateMs;
    }

    public void setOriginalPurchaseDateMs(Long originalPurchaseDateMs) {
        this.originalPurchaseDateMs = originalPurchaseDateMs;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getReceipt() {
        return receipt;
    }

    public void setReceipt(String receipt) {
        this.receipt = receipt;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "AppleIap{" +
            "id=" + id +
            ", userId=" + userId +
            ", number=" + number +
            ", applicationVersion=" + applicationVersion +
            ", versionExternalIdentifier=" + versionExternalIdentifier +
            ", originalApplicationVersion=" + originalApplicationVersion +
            ", quantity=" + quantity +
            ", productId=" + productId +
            ", transactionId=" + transactionId +
            ", originalTransactionId=" + originalTransactionId +
            ", requestDateMs=" + requestDateMs +
            ", receiptCreationDateMs=" + receiptCreationDateMs +
            ", purchaseDateMs=" + purchaseDateMs +
            ", originalPurchaseDateMs=" + originalPurchaseDateMs +
            ", status=" + status +
            ", receipt=" + receipt +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
